package com.machine.service.user;

import java.util.List;

import com.machine.bean.Componentpart;
import com.machine.bean.Model;
import com.machine.bean.PageBean;

public interface ComponentServiceDao {
	public Integer add(Componentpart component);

	public int delete(Componentpart component);
	public Componentpart findById(Integer id);
	public int deleteByIdList(List<Integer> idList);

	public int update(Componentpart component);

	public List<Componentpart> find(String name,int offset, int length);
	public List<Componentpart> findAll();
	public PageBean queryForPage(int pageSize,int currentPage,String username); 
	public PageBean querySearchForPage(String name,int pageSize,int currentPage); 
	public PageBean querySearchForPage(String name,int pageSize,int currentPage, String tag,String orderKey,String orderValue); 
	public int uploadModel(Model model);
	
	public List<Model> findModel(String name,int offset, int length);
	
	public int addModel(int id,String path);
	
}
